﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TreeGraphicalControl;
using Collections;
using System.Windows.Controls;
using System.Windows;
using FeatureModelTool.Windows;
using FeatureModelTool.ProjectView.ProjectTreeStructures;
using FeatureModelTool.ProjectView.MenuItems;
using Collections.TreeCollections;
using FeatureModelTool.ProjectView.TreeItems;
using FeatureModel.Collections.TreeArgs;
using EventLogAssembly;

namespace FeatureModelTool.ProjectView
{
    public class ProjectTreeView : TreeViewControl
    {
        public ProjectTreeView()
            : base()
        {
        }

        public override void Refresh(object sender, TreeEventArgs args)
        {
            base.Refresh(sender, args);
            TreeItem_ProjectTreeRoot root = this.Items[0] as TreeItem_ProjectTreeRoot;
            if (root == null)
            {
                return;
            }
            root.IsExpanded = true;

        }
    }
}
